Fixes: debbugs:11848
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 3 Jul 2012 07:12:22 +0000 (09:12 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 3 Jul 2012 07:12:22 +0000 (09:12 +0200)
* help-fns.el (describe-function-1): Only call
help-fns--autoloaded-p when we have a file name.

lisp/ChangeLog
lisp/help-fns.el

index 7f1ed002564a9880011db47f0dc7920013745241..7e5d5bcc86e24b2def7196d960a075c3e6940b66 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-03  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * help-fns.el (describe-function-1): Only call
+       help-fns--autoloaded-p when we have a file name.  (Bug#11848)
+
 2012-07-03  Chong Yidong  <cyd@gnu.org>
 
        * xml.el: Protect parser against XML bombs.
index 52f1fe26056522852b3d3118df6065a4418947ec..387b65fe243c2745c03abfd2a0f89a524c5be68b 100644 (file)
@@ -444,6 +444,7 @@ FILE is the file where FUNCTION was probably defined."
         (beg (if (and (or (byte-code-function-p def)
                           (keymapp def)
                           (memq (car-safe def) '(macro lambda closure)))
+                      file-name
                       (help-fns--autoloaded-p function file-name))
                  (if (commandp def)
                      "an interactive autoloaded "